import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/ams/itempickuprecord/` + url, ...arg)

/**
 * ams_item_pickup_recordApi接口管理器
 *
 * @author 刘志刚
 * @date  2025/01/08 15:50
 **/
export default {
	// 获取ams_item_pickup_record分页
	amsItemPickupRecordPage(data) {
		return request('page', data, 'get')
	},
	// 提交ams_item_pickup_record表单 edit为true时为编辑，默认为新增
	amsItemPickupRecordSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除ams_item_pickup_record
	amsItemPickupRecordDelete(data) {
		return request('delete', data)
	},
	// 获取ams_item_pickup_record详情
	amsItemPickupRecordDetail(data) {
		return request('detail', data, 'get')
	},
	returnAmsItemPickupRecord(data) {
		return request('return', data)
	}
}
